﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace UserDemo.Areas.Admin.Controllers
{
    
    public class UserController : Controller
    {
        // GET: Admin/User
        public ActionResult Index()
        {
            var admin = Session["AdminUser"] as LoginInfo;
            if (admin == null || admin.UserId < 1)
            {
                return Redirect("/admin/AdminAccount/index");
            }

            return View();
        }
    }
}